<#if isRoot>
[{
	"text": "<a href='list.jspx?root=' target='rightFrame'><@s.m "resource.root"/></a>",
	"classes": "folder"
	<#if resList?size gt 0>,
	"expanded": true,
	"children": [
	<#list resList as res>
		{
		"id": "${res.name}",
		"text": "<a href='${res.directory?string("list.jspx?roott=${res.name?url}'","edit.jspx?roott=${res.path?url}&name=${res.name?url}'")} target='rightFrame'>${res.filename}</a>",
		"classes": "${res.directory?string('folder','file')}",
		"hasChildren": ${res.directory?string('true','false')}
		}<#if res_has_next>,</#if>
	</#list>
	]
	</#if>
}]
<#else>
[
	<#list resList as res>
	{
	"id": "${res.name}",
	"text": "<a href='${res.directory?string("list.jspx?roott=${res.name?url}'","edit.jspx?roott=${res.path?url}&name=${res.name?url}'")} target='rightFrame'>${res.filename}</a>",
	"classes": "${res.directory?string('folder','file')}",
	"hasChildren": ${res.directory?string('true','false')}
	}<#if res_has_next>,</#if>
	</#list>
]
</#if>
